<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/17
 * Time: 14:45
 */

namespace app\zucai\admin;

use app\admin\controller\Admin;
use app\common\builder\ZBuilder;
use think\Db;

class Manage extends Admin
{

    public function index(){
        $cont=Db::name('play_rule')->where('id',1)->select();
        return ZBuilder::make('table')
            ->setTableName('playrule')
            ->addColumns([
                ['__INDEX__', '序号'],
                ['name', '彩种名称'],
                ['money', '每注金额（可修改）','text.edit'],
                ['minbei', '最低注数（可修改）','text.edit'],
                ['maxbei', '最大注数（可修改）','text.edit'],
            ])
            ->setRowList($cont)
            ->fetch();
    }
}